<template>
  <el-menu-item :index='fullPath'>
    <template slot="title">
      <i :class="'icon iconfont ' + item.meta.icon "></i>
      <span style='padding-left: 12px;font-size: 14px'>{{ item.meta.title }}</span>
    </template>
    <el-tag
      v-if='item.meta && item.meta.badge'
      type='danger'
      effect='dark'
    >
      {{ item.meta.badge }}
    </el-tag>
  </el-menu-item>
</template>

<script>

export default {
  name: 'menuItem',
  props: {
    item: {
      type: Object,
      default() {
        return null
      }
    },
    fullPath: {
      type: String,
      default: ''
    }
  }
}
</script>

<style scoped>

</style>